package org.mobilertrain.qsbk;

import android.app.Application;
import android.app.Service;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Administrator on 2016/11/25.
 */

public class BaseApplication extends Application {

    private HttpService service;

    @Override
    public void onCreate() {
        super.onCreate();
        service = new Retrofit.Builder()
                .baseUrl("http://m2.qiushibaike.com/")
                .addConverterFactory(GsonConverterFactory.create())
                .build()
                .create(HttpService.class);
    }
    public HttpService getService(){
        return service;
    }
}
